<script type="text/javascript" charset="utf-8" 
   src="http://fusion.qq.com/fusion_loader?appid=<%$APP_ID%>&platform=<%$session.pf%>">
</script>
<script type="text/javascript" charset="utf-8" >
// select photo from qq album
fusion2.dialog.selectPhoto
({
onSuccess : function (opt) {  alert("success");
        var photos = [];
        for(var i=0; i<opt.data.photos.length; i++)
        {
                photos.push(opt.data.photos[i].url);
        }
       window.location.href = "/users/insert_photo_url?user_id=<%$user.id%>&photos="+photos.join(";");
},
onCancel : function () {  },
onClose : function () {  }
});
</script>
